var BASIC_URL = "http://192.168.17.146:80";

// var BASIC_URL = "http://192.168.17.146:8080";
// var MANAGE_URL = "../js/jsonData";//test
var COMMON_URL = BASIC_URL + "/common";
var CUSTOMER_URL = BASIC_URL + "/customer";
var SERVICE_URL = BASIC_URL + "/serviceUser";
var MANAGE_URL = BASIC_URL + "/manage";
var USER_URL = "http://192.168.17.143:80/user";
//上传文件
var FILUPLOAD_URL = BASIC_URL + "/file";
//vos文件路径
var COS_FILE_URL = "https://after-sale-1256187897.cos.ap-guangzhou.myqcloud.com/";

// 工单详情
Server = {
    getFromManage: function(url, param, callback){
        $.get( MANAGE_URL + url, param, callback);
    },
    postToManage: function(url, param, callback){
        $.post( MANAGE_URL + url, param, callback);
    },
    getFromCustomer: function(url, param, callback){
        $.get( CUSTOMER_URL + url, param, callback);
    },
    postToCustomer: function(url, param, callback){
        $.post( CUSTOMER_URL + url, param, callback);
    },
    getFromService: function(url, param, callback){
        $.get( SERVICE_URL + url, param, callback);
    },
    postToService: function(url, param, callback){
        $.post( SERVICE_URL + url, param, callback);
    },
    postToCommon: function(url, param, callback){
        $.post( COMMON_URL + url, param, callback);
    },
    getFromCommon: function(url, param, callback){
        $.get( COMMON_URL + url, param, callback);
    },
    postToFile : function(url, param, callback) {
    	$.post( FILUPLOAD_URL + url, param, callback);
    },
    getToFile : function(url, param, callback) {
    	$.get( FILUPLOAD_URL + url, param, callback);
    },
    postToUser : function(url, param, callback) {
    	$.post( USER_URL + url, param, callback);
    },
    getFromUser : function(url, param, callback) {
    	$.get( USER_URL + url, param, callback);
    },
}
